package com.smart.campus.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.sql.Date;

/**
 * @BelongsProject: smart-campus
 * @BelongsPackage: com.smart.campus.dto
 * @Author: JinBao shan
 * @date 2024/10/7 19:50
 * @Description: TODO
 * @Version: 1.0
 */

@Data
@NoArgsConstructor
@AutoConfigureAfter
@ToString
@Component
@TableName(value = "teacher_attendance")
public class TeacherAttendance implements Serializable {
    private static final long serialVersionUID = -2806954289513836712L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String img;
    private Integer teacherType;
    private String timeOn;
    private String timeEnd;
    private String teacherReaso;
    private Integer approvalStatus;
    private String approvalTime;
    private String approvalReaso;
    private String createBy;
    private String createTime;
    private String updateBy;
    private String updateTime;

    @TableField(exist = false)
    private String leaveDate;
    @TableField(exist = false)
    private String approvalDate;
    @TableField(exist = false)
    private SysUser sysUser;
    @TableField(exist = false)
    private ShDepartment shDepartment;
}
